import server from "../util/request.js";

/**
 * 1. 加载入院资源 (医生列表和床位列表)
 */
export function loadAdmissionResources(departmentId) {
    return server({
        url: `/api/admission/resources/${departmentId}`,
        method: 'get'
    })
}
/**
 * 2. 提交办理入院
 */
export function processAdmission(data) {
    return server({
        url: '/api/admission/process',
        method: 'post',
        data: data
    })
}
/**
 * *** 额外添加的新方法 ***
 * 3. 拒绝入院申请
 */
export function rejectAdmission(data) {
    return server({
        url: '/inpatient-app/reject',
        method: 'post',
        data: data
    })
}